package com.asset.salesforce.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;


/**
 * The persistent class for the calendar database table.
 * 
 */
@SuppressWarnings("serial")
@Table(name="calendar")
@Entity
public class Calendar implements Serializable {

	private Integer id;
	private String title;
	private Date startDate;
	private Date endDate;
	private String eventType;
	private Integer parentId;
	private Boolean isDone;
	private String description;
	private String note;
	private Employee empId;
	private String isFollowUp;	
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator="calendar_id_seq")
	@SequenceGenerator(name="calendar_id_seq", sequenceName="calendar_id_seq", allocationSize=1)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
	@Column(name="title")
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	
	@Column(name="start_date")
	public Date getStartDate() {
		return startDate;
	}
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	@Column(name="end_date")
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	
	@Column(name="event_type")
	public String getEventType() {
		return eventType;
	}
	public void setEventType(String eventType) {
		this.eventType = eventType;
	}
	
	@Column(name="parent_id")
	public Integer getParentId() {
		return parentId;
	}
	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}
	
	@Column(name="is_done")
	public Boolean getIsDone() {
		return isDone;
	}
	public void setIsDone(Boolean isDone) {
		this.isDone = isDone;
	}
	
	@Column(name="description")
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	
	@Column(name="note")
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}
	/**
	 * @return the empId
	 */
	@ManyToOne
	@JoinColumn(name="emp_id")
	public Employee getEmpId() {
		return empId;
	}
	/**
	 * @param empId the empId to set
	 */
	public void setEmpId(Employee empId) {
		this.empId = empId;
	}
	
	@Column(name="is_followup")
	public String getIsFollowUp() {
		return isFollowUp;
	}
	public void setIsFollowUp(String isFollowUp) {
		this.isFollowUp = isFollowUp;
	}
	
}